1760 REM Give the User one more chance to protect himself.
1770 LOCATE 10,1
1780 PRINT "This program FORMATS a Persons-file by writing new, empty records."
1790 PRINT "It will destroy any data which exists with the same record-numbers."
1800 PRINT
1810 PRINT "If this is REALLY what you want to do,"
1820 PRINT "type y to continue, and press the 'enter' key."
1830 PRINT "Otherwise, type anything else, and press the 'enter' key."
1840 PRINT
1850 LINE INPUT "Enter your desired action: ",REPLY$
1860 IF LEFT$(REPLY$,1) = "y" THEN 2000
1870 IF LEFT$(REPLY$,1) = "Y" THEN 2000
1880 PRINT
1890 PRINT "File was NOT Created."
1900 PRINT
1910 PRINT "Press any key to continue"
1920 A$ = INKEY$ : IF A$ = "" THEN 1920
1930 GOTO 2330 'to end the program
2000 REM CREATPER Program Starts Here
2010 OPEN CC.PERSFILE$ AS #1 LEN = 256
2020 FIELD 1,5ASF1$,20ASF2$,30ASF3$,2ASF4$,5ASF5$,5ASF6$,5ASF7$,11ASF8$,18ASF9$,16ASF10$,16ASF11$,11ASF12$,18ASF13$,16ASF14$,16ASF15$,11ASF16$,18ASF17$,16ASF18$,16ASF19$
2030 REM Write the Persons Records
2040 FOR I = OLD.MAX.PER + 1 TO MAX.PER
2050 TEMP! = -I
2060 TEMP$ = MKS$(TEMP!)
2070 LSET F1$ = TEMP$ 'Record Number
2080 TEMP$ = " "
2090 TEMP! = 0
2100 LSET F2$ = TEMP$ 'Surname
2110 LSET F3$ = TEMP$ 'Given Names
2120 LSET F4$ = TEMP$ 'Sex
2130 LSET F5$ = MKS$(TEMP!) 'Code
2140 LSET F6$ = MKS$(TEMP!) 'Father
2150 LSET F7$ = MKS$(TEMP!) 'Mother
2160 REM all the rest are string
2170 LSET F8$ = TEMP$ 'Birth Date
2180 LSET F9$ = TEMP$ 'Birth City
2190 LSET F10$ = TEMP$ 'Birth County
2200 LSET F11$ = TEMP$ 'Birth State
2210 LSET F12$ = TEMP$ 'Death Date
2220 LSET F13$ = TEMP$ 'Death City
2230 LSET F14$ = TEMP$ 'Death County
2240 LSET F15$ = TEMP$ 'Death State
2250 LSET F16$ = TEMP$ 'Burial Date
2260 LSET F17$ = TEMP$ 'Burial City
2270 LSET F18$ = TEMP$ 'Burial County
2280 LSET F19$ = TEMP$ 'Burial State
2290 LOCATE 23,1 : PRINT "Writing Record Number:";I